/***************************************************************************************************
 *
 * Project: ChinesePod
 *
 * Class: Definition
 *
 * File name: Definition.java
 *
 * Jul 23, 2007
 *
 **************************************************************************************************/

package com.eastmountain.chinese.db.flashcards.records;

abstract public class ChineseElementKey {

    protected String chineseElement = "";
    protected String simplifiedTraditional = "";
    protected short  lessonNumber = 0;
    protected String level        = "U";

    public ChineseElementKey() {

    }

    public ChineseElementKey( String chineseElement,
                              String simplifiedTraditional,
                              int lessonNumber, String level) {

        this.chineseElement = chineseElement;
        this.simplifiedTraditional = simplifiedTraditional;
        this.lessonNumber = (short)lessonNumber;
        this.level = level;

    }

    public ChineseElementKey( String chineseElement,
                              String simplifiedTraditional,
                              int lessonNumber ) {

        this.chineseElement = chineseElement;
        this.simplifiedTraditional = simplifiedTraditional;
        this.lessonNumber = (short)lessonNumber;
        this.level = "U";

    }

    public String getChineseElement() {

        return chineseElement;
    }

    public void setChineseElement( String chineseElement ) {

        this.chineseElement = chineseElement;
    }

    public String getSimplifiedTraditional() {

        return (simplifiedTraditional);

    }

    public void setSimplifiedTraditional( String simplifiedTraditional ) {

        this.simplifiedTraditional = simplifiedTraditional;

    }

    public short getLessonNumber() {
        return lessonNumber;
    }

    public void setLessonNumber( short lessonNumber ) {
        this.lessonNumber = lessonNumber;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel( String level ) {
        this.level = level;
    }

    @Override
    public String toString() {

        String elementProperties

            =   "\nChineseElementKey - "
               + "\nChineseElement:          " + getChineseElement()
               + "\nin SimplifiedTraditiona: " + getSimplifiedTraditional();

        return( elementProperties );

    }

}
